//
//  AbstractLogger.h
//  责任链模式
//
//  Created by flannery on 2018/12/18.
//  Copyright © 2018年 flannery. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef enum LEVEL{
    _INFO = 1,
    _DEBUG = 2,
    _ERROR = 3
}level;

@interface AbstractLogger : NSObject
@property (nonatomic, strong) AbstractLogger * nextLogger;
@property (nonatomic, assign) int level;
-(void)setNextLoggering:(AbstractLogger*)nextLogger;
-(void)logMessage:(int)level message:(NSString*)message;
-(void)write:(NSString*)message;
@end
